home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue30 / delcom / RegContext / RegContextMenuTest.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1998-01-07  |  771 b   |  40 lines

  1. unit RegContextMenuTest;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
  7.  
  8. type
  9.   TForm1 = class(TForm)
  10.     procedure FormCreate(Sender: TObject);
  11.   private
  12.     { Private declarations }
  13.   public
  14.     { Public declarations }
  15.   end;
  16.  
  17. var
  18.   Form1: TForm1;
  19.  
  20. implementation
  21.  
  22. uses RegContextMenu;
  23.  
  24. {$R *.DFM}
  25.  
  26. procedure TForm1.FormCreate(Sender: TObject);
  27. begin
  28.     with TRegContextMenu.Create (Self) do try
  29.         GUID := '{8e3e0f0a-0fcc-11ce-bcb0-b3fd0e25381a}';
  30.         Description := 'Delphi 3.0 Context Menu Shell Extension';
  31.         PathName := 'c:\Delphi 3.0\demos\shellext\contmenu.dll';
  32.         FileType := 'DelphiProject';
  33.         Write;
  34.     finally
  35.         Free;
  36.     end;
  37. end;
  38.  
  39. end.
  40.